package com.xbongbong.saas.domain.entity;

import com.xbongbong.paas.toolbox.util.DateTimeUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author 梁鲁江
 * @version v1.0
 * @date 2019/11/6 15:46
 * @since v1.0
 */
@Setter
@Getter
@ToString
public class PaymentBalanceUserEntity extends UserTeamEntity {

    private static final long serialVersionUID = 1450569044213438842L;
    //因为完全从客户团队同步，索引主键id不需要 自增
    /**
     * 客户ID
     */
    private Long customerId;

    public PaymentBalanceUserEntity() {
    }

    public PaymentBalanceUserEntity(Long customerId,String corpid, String userId, String userName, String userAvatar, Long dataId, Integer isMain, Integer del) {
        this.customerId = customerId;
        this.setDataId(dataId);
        this.setCorpid(corpid);
        this.setUserId(userId);
        this.setUserName(userName);
        this.setUserAvatar(userAvatar);
        this.setIsMain(isMain);
        this.setDel(del);
        long now = DateTimeUtil.getInt();
        this.setAddTime(now);
        this.setUpdateTime(now);
    }
}
